package com.ruoyi.pos.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * goods对象 _goods
 * 
 * @author wzh
 * @date 2021-04-19
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**   */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 条形码 */
    @Excel(name = "条形码")
    private String barcode;

    /** 类型id，参照类型表 */
    @Excel(name = "类型id，参照类型表")
    private Long cid;

    /** 材料id,参照材料表 */
    @Excel(name = "材料id,参照材料表")
    private Long mid;

    /** 颜色id，参照color表 */
    @Excel(name = "颜色id，参照color表")
    private Long coid;

    /** 尺码，1-4分别代表m,l,xl,xxl */
    @Excel(name = "尺码，1-4分别代表m,l,xl,xxl")
    private Integer size;

    /** 类型，1-4分别代表男装、女装、童装，婴儿装 */
    @Excel(name = "类型，1-4分别代表男装、女装、童装，婴儿装")
    private Integer type;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal salePrice;

    /** 进价 */
    @Excel(name = "进价")
    private BigDecimal inPrice;

    @Excel(name = "库存")
    private Integer inventory;

    /** 状态，1-2分别代表上架，下架 */
    @Excel(name = "状态，1-2分别代表上架，下架")
    private Integer state;

    private List<OrderItem> orderItemList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }
    public void setCoid(Long coid) 
    {
        this.coid = coid;
    }

    public Long getCoid() 
    {
        return coid;
    }
    public void setSize(Integer size) 
    {
        this.size = size;
    }

    public Integer getSize() 
    {
        return size;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setInPrice(BigDecimal inPrice) 
    {
        this.inPrice = inPrice;
    }

    public BigDecimal getInPrice() 
    {
        return inPrice;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("barcode", getBarcode())
                .append("cid", getCid())
                .append("mid", getMid())
                .append("coid", getCoid())
                .append("size", getSize())
                .append("type", getType())
                .append("salePrice", getSalePrice())
                .append("inPrice", getInPrice())
                .append("createTime", getCreateTime())
                .append("state", getState())
                .append("inventory", getInventory())
                .append("remark", getRemark())
                .toString();
    }
}
